using System;
using System.Collections.Generic;
using LinFu.IoC.Configuration;

namespace CoreEx.Samples.DomainModel.Implementation
{
	[Implements(typeof(ICategory))]
	[Serializable]
	public class Category : ICategory
	{

		#region Private Members

		private readonly IList<IProduct> _products = new List<IProduct>();

		#endregion

		public int CategoryID { get; set; }
		public string CategoryName { get; set; }
		public string Description { get; set; }
		public byte[] Picture { get; set; }
		public IList<IProduct> Products 
		{
			get { return _products; }
		}
	}
}
